#include <iostream>
#include <string>

using namespace std;

class Solution {
public:
    string generateTheString(int n)
    {
        string s;
        if (n % 2 == 1) {
            for (int i = 0; i < n; ++i) {
                s += "a";
            }
        } else {
            s = "a";
            for (int i = 1; i < n; ++i) {
                s += "b";
            }
        }
        return s;
    }
};

int main()
{
    cout << "Hello World!" << endl;
    return 0;
}
